package ATM.gui;

import javax.swing.ImageIcon;
import javax.swing.JPanel;
import javax.swing.JButton;
import javax.swing.JLabel;

public class MenuAdmin extends JPanel {

	Screen screen;

	public MenuAdmin(Screen screen) {
		this.screen = screen;
		setLayout(null);

		JButton btnViewcustomer = new JButton("View Customer");
		btnViewcustomer.setBounds(183, 119, 141, 86);
		add(btnViewcustomer);
		btnViewcustomer.setActionCommand("ViewCustomer");
		btnViewcustomer.addActionListener(screen.getAdminaL());

		JButton btnNewCustomer = new JButton("New Customer");
		btnNewCustomer.setBounds(334, 119, 141, 85);
		add(btnNewCustomer);
		btnNewCustomer.setActionCommand("NewCustomer");
		btnNewCustomer.addActionListener(screen.getAdminaL());

		JButton btnExit = new JButton("Exit");
		btnExit.setBounds(183, 216, 292, 86);
		add(btnExit);
		btnExit.setActionCommand("Exit");
		btnExit.addActionListener(screen.getaL());
		
		JLabel image = (new JLabel(screen.getVariables().getImage1() ));
		image.setBounds(0, 0, 640, 480);
		add(image);
	}
}
